﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetworkSimulator
{
    public class Release
    {
        private int id;

        public int Id
        {
            get { return id; }
        }

        private Path path;

        public Path Path
        {
            get { return path; }
            set { path = value; }
        }
        private double holdingBandwidth;

        public double HoldingBandwidth
        {
            get { return holdingBandwidth; }
            set { holdingBandwidth = value; }
        }
        private long holdingTime;

        public long HoldingTime
        {
            get { return holdingTime; }
            set { holdingTime = value; }
        }
        private long releasingTime;

        public long ReleasingTime
        {
            get { return releasingTime; }
            set { releasingTime = value; }
        }

        public Release(int id, Path path, double holdingBandwidth, long holdingTime)
        {
            this.id = id;
            this.path = path;
            this.holdingBandwidth = holdingBandwidth;
            this.holdingTime = holdingTime;
        }

        public override string ToString()
        {
            return "REL-" + id + ":" + path + ":" + holdingBandwidth + ":" + holdingTime + ":" + releasingTime;
        }
    }
}
